package v1

import (
	"github.com/gogf/gf/v2/frame/g"
	"hotgo/internal/model/entity"
	"hotgo/internal/model/input/apiin"
	"hotgo/internal/model/input/sysin"
)

type ActivityListReq struct {
	g.Meta   `path:"/activityList" method:"get" tags:"recorder" summary:"下载页列表"`
	Page     int `json:"page" example:"10" d:"1" v:"min:1#页码最小值不能低于1"  dc:"当前页码"`
	PageSize int `json:"pageSize" example:"1" d:"10" v:"min:1|max:200#每页数量最小值不能低于1|最大值不能大于200" dc:"每页数量"`
}

type ActivityListRes struct {
	List       *[]sysin.ActivityListModel `json:"list"`
	TotalCount int                        `json:"totalCount"`
}

type ActivityDetailReq struct {
	g.Meta `path:"/activityDetail" method:"get" auth:"true" tags:"recorder" summary:"活动详情"`
	Id     int `json:"id" v:"required#id不能为空"`
}

type ActivityDetailRes struct {
	entity.Activity
}

type GetVideoReq struct {
	g.Meta     `path:"/getVideo" method:"post" auth:"true" tags:"recorder" summary:"获取下载视频"`
	ActivityId int    `json:"activity_id" v:"required#活动id不能为空"`
	IdCard     string `json:"id_card" v:"required#身份证号不能为空"`
}

type GetVideoRes struct {
	List *[]apiin.GetVideo `json:"list"`
}

type CreateOrderReq struct {
	g.Meta  `path:"/createOrder" method:"post" auth:"true" tags:"recorder" summary:"提交订单"`
	VideoId int `json:"video_id" v:"required#视频id"`
}

type CreateOrderRes struct {
	OrderId  int64  `json:"order_id"`
	OrderNum string `json:"order_num"`
}
